<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <title></title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        .box {
            width: 200px;
            height: 200px;
            margin: 70px auto;
            background-color: pink;
            /* transition: width 2s linear, height 2s cubic-bezier(.93, .21, .72, .54); */
            /* transition: all 2s cubic-bezier(.93, .21, .72, .54); */
        }
        
        .box:hover {
            /* 设置元素可见性为hidden */
            /* visibility: hidden; */
            /* 透明度 */
            /* opacity: 0; */
            width: 200px;
            height: 200px;
            background-color: pink;
            transform: translateY(-8px);
        }
    </style>
</head>

<body>
    <div class="box "></div>
</body>

</html>